package com.example.park.dao;

import com.example.park.entity.ParkShareEntity;
import com.example.park.entityVO.ParkShareDimVO;
import com.example.park.entityVO.ParkShareVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ParkShareDao {

    List<ParkShareVO> queryVOByParam(ParkShareVO vo);

    List<ParkShareVO> queryVOByUid(@Param("uId") Integer uId);

    List<ParkShareVO> queryVOById(@Param("id") Integer id);

    List<ParkShareVO> queryVOByDim(ParkShareDimVO vo);

    List<ParkShareEntity> queryByParam(ParkShareEntity ps);

    int insert(ParkShareEntity parkShareEntity);

    int update(ParkShareEntity parkShareEntity);

    int delete(@Param("id") Integer id);

    int deleteByPId(@Param("pIds") List<Integer> pIds);

    int updateState();

}
